private void tlbSave_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(profileName))
     {
         tlbSaveAs_Click(null, null);
     }
     else
     {
         ProfileUnity.SaveFile(StaticUnity.Profile, profileName);
     }
 }
Beispiel #2
0
 private void tlbSave_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(profileName))
     {
         ProfileUnity.SaveFile(Config.Instance.Profile, StaticUnity.Profile);
     }
     else
     {
         ProfileUnity.SaveFile(StaticUnity.Profile, profileName);
     }
 }
        private void tlbSaveAs_Click(object sender, EventArgs e)
        {
            using (var dialog = new SaveFileDialog())
            {
                dialog.Filter           = FILTER;
                dialog.InitialDirectory = profileDir;

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    profileName = dialog.FileName;
                    ProfileUnity.SaveFile(StaticUnity.Profile, profileName);
                }
            }
        }
        private void tlbOpen_Click(object sender, EventArgs e)
        {
            using (var dialog = new OpenFileDialog())
            {
                dialog.Filter           = FILTER;
                dialog.InitialDirectory = profileDir;

                if (dialog.ShowDialog() == DialogResult.OK)
                {
                    profileName                  = dialog.FileName;
                    StaticUnity.Profile          = ProfileUnity.LoadFile(profileName);
                    propertyGrid1.SelectedObject = StaticUnity.Profile;
                }
            }
        }
Beispiel #5
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            StaticUnity.Profile = ProfileUnity.LoadCurrent();
            InitializeSourceMenus();
            InitializeTemplateMenus();

            OpenOutputForm();
            GetTableForm();
            OpenPeopertyForm();
            OpenProfileForm();
            OpenTemplateForm();
            frmProperty.Activate();

            Process.Start("AutoUpdate.exe");
        }
Beispiel #6
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            StaticUnity.Profile = ProfileUnity.LoadCurrent(Config.Instance.Profile);
            StaticUnity.Main    = this;

            InitializeSourceMenus();
            InitializeTemplateMenus();
            InitializeToolMenus();

            OpenOutputForm();
            GetTableForm();
            OpenPeopertyForm();
            OpenProfileForm();
            OpenTemplateForm();
            frmProperty.Activate();
        }