コード例 #1
0
ファイル: Program.cs プロジェクト: rdavydov/desktopPet
        /// <summary>
        /// Open the option dialog, to show some options like reset XML animation or load animation from the webpage.
        /// </summary>
        public static void OpenOptionDialog()
        {
            FormOptions formoptions = new FormOptions();

            switch (formoptions.ShowDialog())
            {
            case DialogResult.Retry:
                StartUp.AddDebugInfo(StartUp.DEBUG_TYPE.warning, "restoring default XML");

                MyData.SetIcon("");
                MyData.SetImages("");
                MyData.SetXml("", "");
                break;
            }
        }
コード例 #2
0
ファイル: StartUp.cs プロジェクト: rluiten/desktopPet
        /// <summary>
        /// Open the option dialog, to show some options like reset XML animation or load animation from the webpage.
        /// </summary>
        public void OpenOptionDialog()
        {
            FormOptions formoptions = new FormOptions();

            switch (formoptions.ShowDialog())
            {
            case DialogResult.Retry:
                AddDebugInfo(DEBUG_TYPE.warning, "restoring default XML");

                Properties.Settings.Default.Icon   = "";
                Properties.Settings.Default.Images = "";

                LoadNewXMLFromString("");
                break;
            }
        }
コード例 #3
0
        /// <summary>
        /// Open the option dialog, to show some options like reset XML animation or load animation from the webpage.
        /// </summary>
        public void OpenOptionDialog()
        {
            FormOptions formoptions = new FormOptions();

            switch (formoptions.ShowDialog())
            {
            case DialogResult.Retry:
                AddDebugInfo(DEBUG_TYPE.warning, "restoring default XML");

                Program.MyData.SetIcon("");
                Program.MyData.SetImages("");

                Program.MyData.SetXml("", "esheep64");
                break;
            }
        }