示例#1
0
        private void btnAssemblyVersionString_Click(object sender, EventArgs e)
        {
            Utilities utils = new Utilities();
            Assembly currentAssembly = System.Reflection.Assembly.GetExecutingAssembly();

            tbOutput.Text += "Testing assembly version string builder on current assembly:\r\n";
            tbOutput.Text += "Major: " + utils.GetVersionString(currentAssembly, VersionStringType.Major) + "\r\n";
            tbOutput.Text += "MajorMinor: " + utils.GetVersionString(currentAssembly, VersionStringType.MajorMinor) + "\r\n";
            tbOutput.Text += "MajorMinorBuild: " + utils.GetVersionString(currentAssembly, VersionStringType.MajorMinorBuild) + "\r\n";
            tbOutput.Text += "FullString: " + utils.GetVersionString(currentAssembly, VersionStringType.FullString) + "\r\n";
            tbOutput.Text += "\r\n";
        }
示例#2
0
        public frmMain()
        {
            InitializeComponent();

            // Init utilities and icon
            this.utils = new Utilities();
            icoTray = new Icon(this.utils.GetEmbeddedResource(Assembly.GetExecutingAssembly(), defaultNamespace, "ccApp.ico"));

            // Create and populate icon menu
            iconMenu = new ContextMenu();
            this.notifyIcon1.Icon = this.icoTray;
            this.notifyIcon1.Visible = true;
            this.notifyIcon1.ContextMenu = this.iconMenu;
            iconMenu.Popup += new EventHandler(iconMenu_Popup);
        }
示例#3
0
        public frmBackup(CCO passedOptions)
        {
            InitializeComponent();

            // Carbon Copy backup options must be passed to this form upon initialization
            this.backupOptions = passedOptions;

            this.utils = new Gooey.Utilities();
            this.optFunc = new CCOFunctions();
            this.ccColour = new CCOColours();

            this.bkpEngine = new BackupEngine(this.backupOptions);
            bkpEngine.CbBackupFinished += backupFinishedInvoker;
            bkpEngine.CbDebugMsg += addDebugMsg;
            bkpEngine.CbInfoMsg += addInfoMsg;
            bkpEngine.CbErrorMsg += addErrorMsg;
            bkpEngine.CbVerboseMsg += addVerboseMsg;
            bkpEngine.CbDisplayNextMessage += displayNextMsgInvoker;
        }