Changeset 513


Ignore:
Timestamp:
11/12/08 02:28:09 (6 years ago)
Author:
lowjoel
Message:

Added a really rudimentary implementation of our Eraser Updater. (mirrors not implemented, server/file identity information not checked, error handling absent)

Location:
branches/eraser6/Eraser
Files:
3 added
7 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Eraser/Eraser.csproj

    r481 r513  
    194194      <DependentUpon>ToolBar.cs</DependentUpon> 
    195195    </EmbeddedResource> 
     196    <EmbeddedResource Include="UpdateForm.resx"> 
     197      <DependentUpon>UpdateForm.cs</DependentUpon> 
     198    </EmbeddedResource> 
    196199    <Compile Include="Properties\Resources.Designer.cs"> 
    197200      <AutoGen>True</AutoGen> 
     
    247250    <Compile Include="ToolBar.Designer.cs"> 
    248251      <DependentUpon>ToolBar.cs</DependentUpon> 
     252    </Compile> 
     253    <Compile Include="UpdateForm.cs"> 
     254      <SubType>Form</SubType> 
     255    </Compile> 
     256    <Compile Include="UpdateForm.Designer.cs"> 
     257      <DependentUpon>UpdateForm.cs</DependentUpon> 
    249258    </Compile> 
    250259  </ItemGroup> 
  • branches/eraser6/Eraser/MainForm.Designer.cs

    r503 r513  
    120120            // checkForUpdatesToolStripMenuItem 
    121121            //  
     122            this.checkForUpdatesToolStripMenuItem.Name = "checkForUpdatesToolStripMenuItem"; 
    122123            resources.ApplyResources(this.checkForUpdatesToolStripMenuItem, "checkForUpdatesToolStripMenuItem"); 
    123             this.checkForUpdatesToolStripMenuItem.Name = "checkForUpdatesToolStripMenuItem"; 
     124            this.checkForUpdatesToolStripMenuItem.Click += new System.EventHandler(this.checkForUpdatesToolStripMenuItem_Click); 
    124125            //  
    125126            // aboutEraserToolStripMenuItem 
  • branches/eraser6/Eraser/MainForm.cs

    r497 r513  
    218218        } 
    219219 
    220         private void aboutEraserToolStripMenuItem_Click(object sender, EventArgs e) 
    221         { 
    222             using (AboutForm form = new AboutForm(this)) 
    223             { 
    224                 form.ShowDialog(); 
    225             } 
    226         } 
    227  
    228220        private void newTaskToolStripMenuItem_Click(object sender, EventArgs e) 
    229221        { 
     
    233225                if (form.ShowDialog() == DialogResult.OK) 
    234226                    SchedulerPage.AddTask(form.Task); 
     227            } 
     228        } 
     229 
     230        private void checkForUpdatesToolStripMenuItem_Click(object sender, EventArgs e) 
     231        { 
     232            using (UpdateForm form = new UpdateForm()) 
     233            { 
     234                form.ShowDialog(); 
     235            } 
     236        } 
     237 
     238        private void aboutEraserToolStripMenuItem_Click(object sender, EventArgs e) 
     239        { 
     240            using (AboutForm form = new AboutForm(this)) 
     241            { 
     242                form.ShowDialog(); 
    235243            } 
    236244        } 
  • branches/eraser6/Eraser/MainForm.resx

    r481 r513  
    190190    <value>189, 17</value> 
    191191  </metadata> 
    192   <data name="checkForUpdatesToolStripMenuItem.Enabled" type="System.Boolean, mscorlib"> 
    193     <value>False</value> 
    194   </data> 
    195192  <data name="checkForUpdatesToolStripMenuItem.Size" type="System.Drawing.Size, System.Drawing"> 
    196193    <value>171, 22</value> 
     
    206203  </data> 
    207204  <data name="toolbarHelpMenu.Size" type="System.Drawing.Size, System.Drawing"> 
    208     <value>172, 48</value> 
     205    <value>172, 70</value> 
    209206  </data> 
    210207  <data name="&gt;&gt;toolbarHelpMenu.Name" xml:space="preserve"> 
  • branches/eraser6/Eraser/Strings.NL.resx

    r509 r513  
    247247    <value>De taak moet minstens eens per week uitgevoerd worden</value> 
    248248  </data> 
     249  <data name="Processing update list..." xml:space="preserve"> 
     250    <value>(Untranslated)</value> 
     251  </data> 
     252  <data name="Updates" xml:space="preserve"> 
     253    <value>(Untranslated)</value> 
     254  </data> 
     255  <data name="Plugins" xml:space="preserve"> 
     256    <value>(Untranslated)</value> 
     257  </data> 
     258  <data name="{0} of {1} bytes downloaded" xml:space="preserve"> 
     259    <value>(Untranslated)</value> 
     260  </data> 
     261  <data name="Downloading {0}" xml:space="preserve"> 
     262    <value>(Untranslated)</value> 
     263  </data> 
     264  <data name="Error downloading {0}: {1}" xml:space="preserve"> 
     265    <value>(Untranslated)</value> 
     266  </data> 
     267  <data name="Installing {0}" xml:space="preserve"> 
     268    <value>(Untranslated)</value> 
     269  </data> 
     270  <data name="Complete." xml:space="preserve"> 
     271    <value>(Untranslated)</value> 
     272  </data> 
    249273</root> 
  • branches/eraser6/Eraser/Strings.en.resx

    r509 r513  
    247247    <value>The task needs to run on at least one day a week</value> 
    248248  </data> 
     249  <data name="Processing update list..." xml:space="preserve"> 
     250    <value>Processing update list...</value> 
     251  </data> 
     252  <data name="Updates" xml:space="preserve"> 
     253    <value>Updates</value> 
     254  </data> 
     255  <data name="Plugins" xml:space="preserve"> 
     256    <value>Plugins</value> 
     257  </data> 
     258  <data name="{0} of {1} bytes downloaded" xml:space="preserve"> 
     259    <value>{0} of {1} bytes downloaded</value> 
     260  </data> 
     261  <data name="Downloading {0}" xml:space="preserve"> 
     262    <value>Downloading {0}</value> 
     263  </data> 
     264  <data name="Error downloading {0}: {1}" xml:space="preserve"> 
     265    <value>Error downloading {0}: {1}</value> 
     266  </data> 
     267  <data name="Installing {0}" xml:space="preserve"> 
     268    <value>Installing {0}</value> 
     269  </data> 
     270  <data name="Complete." xml:space="preserve"> 
     271    <value>Complete.</value> 
     272  </data> 
    249273</root> 
  • branches/eraser6/Eraser/Strings.resx

    r509 r513  
    247247    <value>The task needs to run on at least one day a week</value> 
    248248  </data> 
     249  <data name="Processing update list..." xml:space="preserve"> 
     250    <value>Processing update list...</value> 
     251  </data> 
     252  <data name="Updates" xml:space="preserve"> 
     253    <value>Updates</value> 
     254  </data> 
     255  <data name="Plugins" xml:space="preserve"> 
     256    <value>Plugins</value> 
     257  </data> 
     258  <data name="{0} of {1} bytes downloaded" xml:space="preserve"> 
     259    <value>{0} of {1} bytes downloaded</value> 
     260  </data> 
     261  <data name="Downloading {0}" xml:space="preserve"> 
     262    <value>Downloading {0}</value> 
     263  </data> 
     264  <data name="Error downloading {0}: {1}" xml:space="preserve"> 
     265    <value>Error downloading {0}: {1}</value> 
     266  </data> 
     267  <data name="Installing {0}" xml:space="preserve"> 
     268    <value>Installing {0}</value> 
     269  </data> 
     270  <data name="Complete." xml:space="preserve"> 
     271    <value>Complete.</value> 
     272  </data> 
    249273</root> 
Note: See TracChangeset for help on using the changeset viewer.