Exemple #1
0
 public Form1()
 {
     InitializeComponent();
     _form_resize = new clsResize(this);
     this.Load   += new EventHandler(_Load);
     this.Resize += new EventHandler(_Resize);
 }
Exemple #2
0
 public frmNewForm()
 {
     InitializeComponent();
     _form_resize = new clsResize(this);
     this.Load   += _Load;
     this.Resize += _Resize;
 }
Exemple #3
0
 public StudentDetail(string mssv)
 {
     this.AutoSize = true;
     checkmssv     = mssv;
     InitializeComponent();
     StudentBinding();
     _form_resize = new clsResize(this);
 }
Exemple #4
0
 public StudentAddUpdate(string mssv)
 {
     checkmssv = mssv;
     InitializeComponent();
     StudentBinding();
     _form_resize = new clsResize(this);
     this.Resize += StudentAddUpdate_Resize;
     this.Load   += StudentAddUpdate_Load;
 }
Exemple #5
0
 public TeacherDetail(string msv)
 {
     checkmgv = msv;
     InitializeComponent();
     TeacherBinding();
     _form_resize = new clsResize(this);
     this.Resize += TeacherDetail_Resize;
     this.Load   += TeacherDetail_Load;
 }
Exemple #6
0
 public ProjectDetail(string id)
 {
     checkid = id;
     InitializeComponent();
     ProjectBinding();
     _form_resize = new clsResize(this);
     this.Load   += ProjectDetail_Load;
     this.Resize += ProjectDetail_Resize;
 }
 public TeacherAddUpdate(string mgv)
 {
     checkmgv = mgv;
     InitializeComponent();
     TeacherBinding();
     _form_resize = new clsResize(this);
     this.Resize += TeacherAddUpdate_Resize;
     this.Load   += TeacherAddUpdate_Load;
 }
Exemple #8
0
 public ProgressView(string idProject)
 {
     InitializeComponent();
     checkid = idProject;
     ProgressBinding();
     _form_resize = new clsResize(this);
     this.Load   += ProgressView_Load;
     this.Resize += ProgressView_Resize;
     //EditComment();
 }
        public UserAnalysisForm(Form1 mainForm)
        {
            InitializeComponent();

            _form_resize = new clsResize(this);

            _form_resize.SetFormsInitialSize(new Size(this.Width, this.Height));
            _form_resize.StoreControlsInitialSizes();

            this.mainForm = mainForm;
        }
Exemple #10
0
        public GeneralManager()
        {
            InitializeComponent();



            //setup form resizing
            gmResize     = new clsResize(this);
            this.Load   += new EventHandler(_Load);
            this.Resize += new EventHandler(_Resize);
        }
Exemple #11
0
 public ProjectAddUpdate(string id)
 {
     checkid = id;
     InitializeComponent();
     _form_resize          = new clsResize(this);
     this.Load            += ProjectAddUpdate_Load;
     this.Resize          += ProjectAddUpdate_Resize;
     cbCategory.Text       = "Nhấn để chọn";
     cbCategory.DataSource = new List <string> {
         "Đồ án môn học", "Tiểu luận chuyên ngành", "Đồ án tốt nghiệp"
     };
 }
Exemple #12
0
        public Form1()
        {
            InitializeComponent();

            var rnd = new Random();

            ThisPokemon = Pokemon.GeneratePokemon(rnd.Next(0, 3), 100);
            FoePokemon  = Pokemon.GeneratePokemon(rnd.Next(0, 3), 100);

            ThisPokemon.SetControls(barMyPkm, lblCurrentHP);
            FoePokemon.SetControls(barFoePkm);

            _form_resize = new clsResize(this);
            this.Resize += new EventHandler(_Resize);
        }
Exemple #13
0
        public MainGUI()
        {
            InitializeComponent();

            dtgvStudent.DataSource = studentList;
            dtgvTeacher.DataSource = teacherList;
            dtgvProject.DataSource = projectList;
            LoadProjects();
            LoadStudents();
            LoadTeachers();
            LoadChartProject();

            tabMain.Appearance = TabAppearance.FlatButtons;
            tabMain.ItemSize   = new Size(0, 1);
            tabMain.SizeMode   = TabSizeMode.Fixed;

            _form_resize = new clsResize(this);
            this.Load   += _Load;
            this.Resize += _Resize;
        }
Exemple #14
0
        //private PreferencesFrm Preform;

        public MainForm()
        {
            CW = this.Width;  //' Current Width
            CH = this.Height; //Current Height
            IW = this.Width;  //Initial Width
            IH = this.Height; //Initial Height

            IW = this.Width;
            IH = this.Height;

            InitializeComponent();

            myInitializeComponent();

            MyAWSService = new AWSServices();


            try

            {
                Microsoft.Win32.RegistryKey AWSPowerManager = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AWSPowerManager");
                DefaultProfile = AWSPowerManager.GetValue("DefaultProfile").ToString();
                Microsoft.Win32.RegistryKey AWSPowerManagerProfile = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("AWSPowerManager\\" + DefaultProfile);
                AccessKeyID     = AWSPowerManagerProfile.GetValue("AccessKeyID").ToString();
                SecretAccessKey = AWSPowerManagerProfile.GetValue("SecretAccessKey").ToString();
                sshtool         = AWSPowerManager.GetValue("sshtool").ToString();
                sshkey          = AWSPowerManager.GetValue("sshkey").ToString();
                AWSPowerManagerProfile.Close();
                AWSPowerManager.Close();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Please configure Access and Secret keys" + ex.Message);
            }

            Amazon.Util.ProfileManager.RegisterProfile("DemiProfile", AccessKeyID, SecretAccessKey);

            credentials = new Amazon.Runtime.StoredProfileAWSCredentials("DemiProfile");

            //Amazon.Util.ProfileManager.RegisterProfile("DemiProfile", "AKIAJRS2CHZPD4EFX3PA", "WAOIQ/zsZmdwsvhK4MHr+gT3ZmpdF8jdcAd2+nky");


            //AmazonEC2Config config = new AmazonEC2Config();


            //get list of all AWS Regions
            RegionlistView.View          = View.Details;
            RegionlistView.FullRowSelect = true;
            RegionlistView.HideSelection = false;
            RegionlistView.LabelEdit     = true;
            RegionlistView.Sorting       = SortOrder.Ascending;
            RegionlistView.HeaderStyle   = ColumnHeaderStyle.Clickable;
            RegionlistView.Columns.Add("Region", 100, HorizontalAlignment.Left);
            RegionlistView.Columns.Add("Region Name", 150, HorizontalAlignment.Left);

            ListViewItem lvitem;

            foreach (RegionEndpoint region in RegionEndpoint.EnumerableAllRegions)
            {
                lvitem = RegionlistView.Items.Add(region.SystemName);
                lvitem.SubItems.Add(region.DisplayName);
            }


            regionslabel.Text = "No. of Regions:" + RegionlistView.Items.Count;


            EC2listView.View          = View.Details;
            EC2listView.FullRowSelect = true;
            EC2listView.HideSelection = false;
            EC2listView.LabelEdit     = true;
            // EC2listView.Sorting = SortOrder.Ascending;
            EC2listView.HeaderStyle = ColumnHeaderStyle.Clickable;
            EC2listView.Columns.Add("Id", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Tag Name", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("State", 50, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Type", 80, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Platform", 80, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Private DNS Name", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Private IP", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Public DNS Name", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Public IP", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Zone", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("VPC", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Key Name", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("subnetID", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("ImageID", 150, HorizontalAlignment.Left);
            EC2listView.Columns.Add("SecurityGroups", 300, HorizontalAlignment.Left);
            EC2listView.Columns.Add("Volumes", 300, HorizontalAlignment.Left);



            _form_resize = new clsResize(this);
            this.Load   += _Load;
            this.Resize += _Resize;
        }