示例#1
0
        public ViewerForm(string url, string model, string description, string year, string price)
        {
            InitializeComponent();
            loader  = new HtmlLoader();
            parsing = new Parsing();

            Name.Text        = "Model: " + model;
            Description.Text = "Description: " + description;
            Year.Text        = "Year: " + year;
            Price.Text       = "Price: " + price;
            LoadingData(url);
        }
示例#2
0
        public Main()
        {
            InitializeComponent();
            connString    = @"Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=C:\Find Auto\Find Auto\searchData.mdf;Integrated Security=True;Connect Timeout=30";
            StartPosition = FormStartPosition.CenterScreen;
            SelectProject selectForm = new SelectProject();

            selectForm.StartPosition = FormStartPosition.CenterScreen;
            selectForm.Owner         = this;
            selectForm.TopMost       = true;
            selectForm.ShowDialog();
            loader  = new HtmlLoader();
            parsing = new Parsing();
        }